package cn.com.wblog.pojo;

import java.sql.Timestamp;

import org.nutz.dao.entity.annotation.*;

@Table("wb_picture")
public class Picture {
	@Column
	@Id
	private int id;
	@Column
	private int userId;
	@Column
	private String title;
	@Column
	private int typeId;
	@Column
	private String description;
	@Column
	private String url;
	@Column
	private Timestamp postTime;
	@Column
	private Timestamp updateTime;
	@One(target = User.class, field = "userId")
	private User user;
	@One(target = PictureType.class, field = "typeId")
	private PictureType pictureType;
	
	public PictureType getPictureType() {
		return pictureType;
	}
	public void setPictureType(PictureType pictureType) {
		this.pictureType = pictureType;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getTypeId() {
		return typeId;
	}
	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Timestamp getPostTime() {
		return postTime;
	}
	public void setPostTime(Timestamp postTime) {
		this.postTime = postTime;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	
}
